home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GTMDNM.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  406 b   |  15 lines

  1. /*  getmodename  */
  2. #include <stdio.h>
  3. #include <conio.h>
  4. #include <graphics.h>
  5. main()
  6. {
  7.     int graphdriver = DETECT,graphmode;
  8. /*  Detect and initialize the graphics system */
  9.     initgraph(&graphdriver,&graphmode,"c:\\turboc");
  10. /*  Display the name of current mode */
  11.     printf("Current mode is: %s\n",getmodename(graphmode));
  12. /*  Wait for a keystroke before exiting */
  13.     getch();
  14.     closegraph();
  15. }